
// dock竖屏时的宽度
extern const CGFloat JGDockPW;
// dock横屏时的宽度
extern const CGFloat JGDockLW;

// 屏幕竖屏时的宽度
extern const CGFloat JGScreenPW;
// 屏幕横屏时的宽度
extern const CGFloat JGScreenLW;

extern NSString *const JGTabBarDidSelectNotification;
extern NSString *const JGTabBarSelectIndex;

#define Lanscape ([UIScreen mainScreen].bounds.size.width == JGScreenLW)
#define Portrait ([UIScreen mainScreen].bounds.size.width == JGScreenPW)

#define JGColor(r,g,b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define JGRandomColor JGColor(arc4random_uniform(255),arc4random_uniform(255),arc4random_uniform(255))